home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / sysadm / sharePrinters.z / sharePrinters
Encoding:
Text File  |  1998-10-20  |  4.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSHHHHAAAARRRREEEEPPPPRRRRIIIINNNNTTTTEEEERRRRSSSS((((1111MMMM))))                                            SSSSHHHHAAAARRRREEEEPPPPRRRRIIIINNNNTTTTEEEERRRRSSSS((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sharePrinters - share local printers with remote hosts.
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////pppprrrriiiivvvvbbbbiiiinnnn////sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss ----aaaallllllll
  13.      ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////pppprrrriiiivvvvbbbbiiiinnnn////sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss ----hhhhoooossssttttssss _h_o_s_t-_n_a_m_e [ ... ]
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss is a privileged command that enables the sharing of local
  17.      printers by editing the ._r_h_o_s_t_s file for the "lp" user account.  When
  18.      "lp" on one IRIS can _r_l_o_g_i_n(1C) to the "lp" account on another IRIS, the
  19.      first IRIS can then forward print jobs to the second IRIS.
  20.  
  21.      When the ----aaaallllllll option is used, /_v_a_r/_s_p_o_o_l/_l_p/._r_h_o_s_t_s is edited to contain
  22.      one line with the single character '+'.  This enables remote access for
  23.      all hosts.
  24.  
  25.      When the ----hhhhoooossssttttssss option is used, /_v_a_r/_s_p_o_o_l/_l_p/._r_h_o_s_t_s is edited to
  26.      contain one line for each host specified on the command line.  The
  27.      canonical host name is used for each host specified.  Additionally, if
  28.      the "lp" account has no password, '*' is written into the password field
  29.      for the "lp" account in /etc/passwd.  This disables logins to the "lp"
  30.      account from machines that are not mentioned in /_v_a_r/_s_p_o_o_l/_l_p/._r_h_o_s_t_s (or
  31.      /_e_t_c/_h_o_s_t_s._e_q_u_i_v; see below). This restricts remote access to those hosts
  32.      specified on the sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss command line.
  33.  
  34. CCCCAAAAVVVVEEEEAAAATTTTSSSS
  35.      sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss ----hhhhoooossssttttssss will not succeed in restricting access to the hosts
  36.      passed in on the command line if one of the files /_e_t_c/_h_o_s_t_s._e_q_u_i_v or
  37.      /_e_t_c/_h_o_s_t_s._l_p_d contains entries other than "localhost".  hosts named in
  38.      either of these files will also be able to submit print jobs.
  39.      sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss detects these cases and issues warnings to the system
  40.      administration log, /_v_a_r/_s_y_s_a_d_m/_s_a_l_o_g.
  41.  
  42.      If one of the hosts passed to sssshhhhaaaarrrreeeePPPPrrrriiiinnnntttteeeerrrrssss ----hhhhoooossssttttssss is also sharing
  43.      printers, it is possible that unauthorized hosts can forward jobs through
  44.      that host.
  45.  
  46. FFFFIIIILLLLEEEESSSS
  47.      /var/spool/lp/.rhosts     List of hosts which can rlogin to the lp
  48.                                account.
  49.      /etc/passwd               Database of user accounts.
  50.      /etc/hosts.equiv          List of equivalent hosts.
  51.      /etc/hosts.lpd            Remote access file for the bsd spooler,
  52.                                llllppppdddd(1M).
  53.  
  54. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  55.      sysmgr(1M),  runpriv(1M), rlogin(1C), unsharePrinters(1M), lpsched(1M),
  56.      lpd(1M), hosts.equiv(4).
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.